package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsBasicSettlementTypeMapper;
import com.scau402.system.domain.WmsBasicSettlementType;
import com.scau402.system.service.IWmsBasicSettlementTypeService;

/**
 * 结算方式Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsBasicSettlementTypeServiceImpl implements IWmsBasicSettlementTypeService 
{
    @Autowired
    private WmsBasicSettlementTypeMapper wmsBasicSettlementTypeMapper;

    /**
     * 查询结算方式
     * 
     * @param settlementType 结算方式主键
     * @return 结算方式
     */
    @Override
    public WmsBasicSettlementType selectWmsBasicSettlementTypeBySettlementType(String settlementType)
    {
        return wmsBasicSettlementTypeMapper.selectWmsBasicSettlementTypeBySettlementType(settlementType);
    }

    /**
     * 查询结算方式列表
     * 
     * @param wmsBasicSettlementType 结算方式
     * @return 结算方式
     */
    @Override
    public List<WmsBasicSettlementType> selectWmsBasicSettlementTypeList(WmsBasicSettlementType wmsBasicSettlementType)
    {
        return wmsBasicSettlementTypeMapper.selectWmsBasicSettlementTypeList(wmsBasicSettlementType);
    }

    /**
     * 新增结算方式
     * 
     * @param wmsBasicSettlementType 结算方式
     * @return 结果
     */
    @Override
    public int insertWmsBasicSettlementType(WmsBasicSettlementType wmsBasicSettlementType)
    {
        return wmsBasicSettlementTypeMapper.insertWmsBasicSettlementType(wmsBasicSettlementType);
    }

    /**
     * 修改结算方式
     * 
     * @param wmsBasicSettlementType 结算方式
     * @return 结果
     */
    @Override
    public int updateWmsBasicSettlementType(WmsBasicSettlementType wmsBasicSettlementType)
    {
        return wmsBasicSettlementTypeMapper.updateWmsBasicSettlementType(wmsBasicSettlementType);
    }

    /**
     * 批量删除结算方式
     * 
     * @param settlementTypes 需要删除的结算方式主键
     * @return 结果
     */
    @Override
    public int deleteWmsBasicSettlementTypeBySettlementTypes(String[] settlementTypes)
    {
        return wmsBasicSettlementTypeMapper.deleteWmsBasicSettlementTypeBySettlementTypes(settlementTypes);
    }

    /**
     * 删除结算方式信息
     * 
     * @param settlementType 结算方式主键
     * @return 结果
     */
    @Override
    public int deleteWmsBasicSettlementTypeBySettlementType(String settlementType)
    {
        return wmsBasicSettlementTypeMapper.deleteWmsBasicSettlementTypeBySettlementType(settlementType);
    }
}
